<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
  <head>
  <title>区域设置</title>
     <%@ include file="/WEB-INF/jsp/public/common.jspf" %>
     <script type="text/javascript"
	src="${pageContext.request.contextPath}/script/md5.js"></script>
  </head>
<script type="text/javascript">
function a(){

	 var new_password=document.getElementsByName("newpassword")[0].value;
	var confirm_password=document.getElementsByName("confirmpassword")[0].value;
	if(new_password.length<1){
		alert("密码不能为空！");
		return false;
	}
	if(new_password!=confirm_password){
		alert("两次输入密码不一致，请重新输入！");
		return false;
	}
	else{
		document.form.submit();
		return true;
	}  
}
</script>
  <body>
    <div id="container">
	<!-- 	<div class="Title_bar">
			<span>区域编辑</span>
		</div> -->
		<table class="table-edit" style="margin-left:80px;margin-top:100px;">
			<s:form  name="form" action="rdfile_setPassword" target="right">		
			<s:hidden name="id"/>
				<tbody>
          
					<tr>
						<td><label for="new_password">新密码</label><br> <s:password
								type="password" name="newpassword" id="newpassword"
								placeholder="请输入新密码" cssStyle="width:200px;height:25px"/></td>
					</tr>
					<tr>
						<td><label for="confirm_password">确认密码</label><br> <s:password
								type="password" name="confirmpassword" placeholder="确认密码和新密码一致" cssStyle="width:200px;height:25px"/>
						</td>
					</tr>
				</tbody>
				<tfoot>
					<tr>
						<th colspan="2">
							<input type="button" style="width:100px;height:30px;" value="保存" onclick="a();"/>
						</th>
					</tr>
				</tfoot>
			</s:form>
		</table>
	</div>
	


  </body>
</html>
